package base;

public class Identifier implements AST {

	private String name;

	public Identifier(String name) {
		this.name = name;
	}

	public String getName() {
		return this.name;
	}

	public boolean equals(Object other) {
		if (!(other instanceof Identifier))
			return false;

		return this.getName().equals(((Identifier) other).getName());
	}

	public String toString() {
		return "(Identifier) " + this.name;
	}
	
}
